package com.ruoyi.collect.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 收藏夹主（支持分类）对象 collections
 * 
 * @author ruoyi
 * @date 2025-08-13
 */

public class Collections extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏夹ID */
    private String id;

    /** 所属用户ID */
    @Excel(name = "所属用户ID")
    private String userId;

    /** 收藏夹名称（如“空气炸锅”“无分类”） */
    @Excel(name = "收藏夹名称", readConverterExp = "如=“空气炸锅”“无分类”")
    private String name;

    /** 是否默认收藏夹（1-是，0-否） */
    @Excel(name = "是否默认收藏夹", readConverterExp = "1=-是，0-否")
    private Integer isDefault;

    /** 是否删除：0正常 1删除 */
    @Excel(name = "是否删除：0正常 1删除")
    private Integer del;

    /** $column.columnComment */
    @Excel(name = "收藏封面图片", readConverterExp = "$column.readConverterExp()")
    private Long defaultUserId;

    private String coverImage;


    //xin
    @TableField(exist = false)
    private Users users;


    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    public void setDefaultUserId(Long defaultUserId) 
    {
        this.defaultUserId = defaultUserId;
    }

    public Long getDefaultUserId() 
    {
        return defaultUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .append("defaultUserId", getDefaultUserId())
            .append("coverImage", getCoverImage())
            .append("users", users)
            .toString();
    }
}
